<div class="right_side_operate_area">
    <div class="right item_add_btn">
    <?php 
    		echo $html->link("返回","/types/talstack/",array("onclick"=>"history.go(-1);return false;"));
    ?>
    </div>
    <div class="clear"></div>
</div>
<div class="right_side_scollbar">
	<div class="detail_info_panel">
		<?php 
		echo $form -> create('Talstack', array('url'=>'/types/addtalstack')); 
		?>									
		<div class="details_item_line">
			<div class="details_item">
				<div class="form_left_title left">类型：</div>
				<div class="form_right_input left"><?php echo $talstack["Talstack"]["tname"];?></div>
			</div>
		</div>
		<?php
		if(empty($talstack["Talstack"]["super_class"])){
		?>
		<div class="details_item_line">
			<div class="details_item">
				<div class="form_left_title left">主管部门：</div>
				<div class="form_right_input left">
				<?php 
                $gov=$talstack["Talstack"]["gov"];
                foreach($talstacktype as $key=>$type){
                	if($key==$gov){
                		echo $type;
                		break;
                	}
                }
                ?>
				</div>
			</div>
		</div>
		<div class="details_item_line">
			<div class="details_item">
				<div class="form_left_title left">政策：</div>
				<div class="form_right_input left"><?php echo $talstack["Talstack"]["desc"];?></div>
			</div>
		</div>
		<?php
		}
		?>
		</form>
		
			<?php
				if(!empty($stacks) && 1==2){
			?>
			<div class="right_side_operate_area">
				<div class="right_side_title left">
					<tr class='per_list'>				
					<?php
											
						foreach($stacks as $stack)
						{							
							$id=$stack["Talstack"]["id"];
							$objtypes=classregistry::init('Talstack')->getsubtype($id);
							$tname=$stack["Talstack"]["tname"];							
							echo "<span class='form_left_title'>".$stack["Talstack"]["tname"]."<ul form_right_input left>";
							
							foreach($objtypes as $objtype){
								echo "--".$objtype["Talstack"]["tname"];
							}
							
							echo "<ul></span>";					
						}
						
					?>
					</tr>	
				</div>	
			</div>				
			<?php
			}	
			?>	
		 
	</div>
</div>	
<script>
</script>